//
//  C11NetConnector.h
//  精通Objective-C
//
//  Created by 花强 on 2017/12/26.
//  Copyright © 2017年 花强. All rights reserved.
//

#import <Foundation/Foundation.h>

#define HTTP_SCHEME @"http"
#define HTTPS_SCHEME @"https"

#define CACHE_MEMARY_SIZE (4*1024*1024)

@interface C11NetConnector : NSObject<NSURLConnectionDelegate>//接口采用NSURLConnectionDelegate协议的代理，因而能够通过异步方式加载来自NSURLConnection实例的数据

@property (readonly) BOOL finishedLoading;//表示 是否结束了加载数据的操作

-(id)initWithRequest:(NSURLRequest *)request;
-(void)reloadRequest;//重新加载NSURLRequest对象

@end
